<template>
	<view class="content">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" circular>
			<swiper-item>
				<image src="@/static/images/banner/banner.png" mode=""></image>
			</swiper-item>

			<swiper-item>
				<image src="@/static/images/banner/banner.png" mode=""></image>
			</swiper-item>
			<swiper-item>
				<image src="@/static/images/banner/banner.png" mode=""></image>
			</swiper-item>
		</swiper>

		<!-- 公告 -->
		<view class="gonggao">
			<view class="d-flex position-relative">
				<image class="position-absolute" style="bottom: 3upx;" src="../../static/images/banner/laba.png">
				</image>
				<view style="margin-left: 30upx;">
					<navigator url="/pages/gonggao/gonggao">公告</navigator>
				</view>
				<view style="color: #A4A4A4;text-indent: 1rem;">|</view>
				<navigator url="../gonggao/gonggao">
					<view style="text-indent: 1rem; color: #A4A4A4;"> 最新上线VIP功能，欢迎体验</view>
				</navigator>
			</view>
			<text>更多</text>
		</view>
		<!-- 投保助手 -->
		<view class="tb d-flex">
			<view>投保助手</view>
			<view>/投保下单快人一步</view>
		</view>

		<!-- 投保助手图片 -->
		<view class="zhushou">
			<view>
				<image src="../../static/images/content/index1.png" mode=""></image>
				<view class="ljtb"></view>
			</view>
			<view>
				<image src="../../static/images/content/index2.png" mode=""></image>
				<view class="ljtb"></view>
			</view>
		</view>

		<view class="btn">
			<button @tap="sends">
				<navigator url="../toubao/toubao">立即投保</navigator>
			</button>
			<button @tap="xb">一键续保</button>
		</view>

		<view class="kefu">
			<image src="@/static/images/icon/kefu.png" mode=""></image>
			<text>联系客服</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			sends(){
				uni.navigateTo({
					url:'/pages/toubao/toubao'
				})
			},//投保
			xb(){
				uni.navigateTo({
					url:'/pages/toubao/toubao'
				})
			},//续保
		}
	}
</script>

<style scoped lang="less">
	.kefu {
		position: absolute;
		bottom: -120upx;
		left: 270upx;
		display: flex;
		align-items: center;

		image {
			width: 30px;
			height: 30px;
			margin-right: 10upx;
		}
	}

	.btn {
		display: flex;
		position: absolute;
		width: 100%;
		bottom: 22upx;

		button {
			height: 48upx;
			line-height: 48upx;
			border-radius: 24rpx;
			color: red;
			border: solid 1rpx #e60012;
			font-family: "Lucida Console", "Courier New", monospace;
		}
	}

	.ljtb::before {
		content: "";
		width: 209upx;
		height: 209upx;
		border-radius: 100%;
		background-color: #ffefef;
		position: absolute;
		left: 55upx;
		bottom: 85upx;
	}

	.zhushou {
		display: flex;
	}

	.zhushou>view {
		position: relative;
		width: 330upx;
		height: 348upx;
		background-color: #ffffff;
		box-shadow: 0rpx 0rpx 27rpx 0rpx #f2eded;
		border-radius: 8rpx;
		margin: 0 auto;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;

		image {
			width: 124upx;
			height: 124upx;
			z-index: 20;
		}

	}

	// 投保助手图片
	.tb {
		width: 100%;
		height: 90upx;
		padding: 30upx 30upx;
	}

	.tb view:nth-child(1) {
		font-weight: bold;
	}

	.tb view:nth-child(2) {
		color: #999999;
		font-size: 26upx;
		line-height: 46upx;
	}

	// 投保助手
	.gonggao {
		display: flex;
		justify-content: space-between;
		height: 80upx;
		border-bottom: 20upx solid #F2F2F2;
		align-items: center;
		padding: 0 20upx;
		white-space: nowrap;

		image {
			width: 28upx;
			height: 29upx;
		}
	}

	swiper {
		width: 100%;
		height: 370upx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.content {
		position: relative;
	}
</style>
